<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<padnug.Domain.Event>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>
                ID
            </th>
            <th>
                MeetingDate
            </th>
            <th>
                Host
            </th>
            <th>
                HostSummary
            </th>
            <th>
                Minutes
            </th>
            <th>
                Topic
            </th>
            <th>
                TopicSummary
            </th>
            <th>
                Location
            </th>
            <th>
                Latitude
            </th>
            <th>
                Longitude
            </th>
            <th>
                MeetingTime
            </th>
            <th>
                MeetingStart
            </th>
            <th>
                MeetingEnd
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "UpdateEvent", new { eventId = item.ID }) %> |
                <%= Html.ActionLink("Delete", "DeleteEvent", new { eventId = item.ID })%>
            </td>
            <td>
                <%= Html.Encode(item.ID) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.MeetingDate)) %>
            </td>
            <td>
                <%= Html.Encode(item.Host) %>
            </td>
            <td>
                <%= Html.Encode(item.HostSummary) %>
            </td>
            <td>
                <%= Html.Encode(item.Minutes) %>
            </td>
            <td>
                <%= Html.Encode(item.Topic) %>
            </td>
            <td>
                <%= Html.Encode(item.TopicSummary) %>
            </td>
            <td>
                <%= Html.Encode(item.Location) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:F}", item.Latitude)) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:F}", item.Longitude)) %>
            </td>
            <td>
                <%= Html.Encode(item.MeetingTime) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.MeetingStart)) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.MeetingEnd)) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="RightContent" runat="server">
</asp:Content>

